package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 发票管理对象 contract_invoice
 *
 * @author ruoyi
 * @date 2024-03-14
 */
@Data
public class ContractInvoice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 数据id */
    private Long id;

    /** 相对方id */
    @Excel(name = "相对方id")
    private Long counterpartId;

    /** 合同id */
    @Excel(name = "合同id")
    private Long contractId;

    /** 发票类型 */
    @Excel(name = "发票类型")
    private String invoiceType;

    /** 发票金额 */
    @Excel(name = "发票金额")
    private BigDecimal invoiceAmount;

    /** 税率 */
    @Excel(name = "税率")
    private BigDecimal taxRate;

    /** 发票日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发票日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date invoiceDate;

    /** 发票内容 */
    @Excel(name = "发票内容")
    private String invoiceDesc;

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;

    /** 发票抬头 */
    @Excel(name = "发票抬头")
    private String invoiceTitle;

    /** 开户银行 */
    @Excel(name = "开户银行")
    private String bank;

    /** 开户名称 */
    @Excel(name = "开户名称")
    private String bankAccountName;

    /** 银行账户 */
    @Excel(name = "银行账户")
    private String bankNumber;

    /** 纳税人识别号 */
    @Excel(name = "纳税人识别号")
    private String systemTin;

    /** 地址 */
    @Excel(name = "地址")
    private String address;

    /** 电话 */
    @Excel(name = "电话")
    private String tel;
    private String contractName;
    private String counterpartName;

    private Long projectId;

}
